/**
 * Created by XHL on 2022-07-27.
 */

#include "include/Bullet.h"

namespace entity {
	Bullet::Bullet(const Location &location, const Direction &direction)
			: m_location(location) {
		switch (direction) {
			case meta::Enum::D_LEFT:
			case meta::Enum::D_RIGHT:
				this->m_shape = global::shape_h;
				break;
			case meta::Enum::D_UP:
			case meta::Enum::D_DOWN:
				this->m_shape = global::shape_v;
				break;
		}

	}

	Bullet::~Bullet() = default;

	void Bullet::move(const Direction &direction, const Location &location) {

	}

	void Bullet::erase_self() {

	}

	void Bullet::draw_self() {
		if (!this->m_shape) return;
		std::cout << this->m_shape;
	}
} // entity